package com.hue.gulimail.gulimailsearch.vo;

import com.hue.common.to.es.SkuEsModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 查询的响应结果
 * @author 姚凤桥
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SearchResult {
    /**
     * 返回的所有商品信息
     */
    private List<SkuEsModel> skuEsModels;

    /**
     * 返回的页码信息
     */
    private Integer pageNum;
    private Long total;
    private Integer totalPage;

    //查询的所有品牌信息
    private List<BrandVo> brandVos;
    //查询的所有分类信息
    private List<CatalogVo> catalogVos;
    //查询的所有属性信息
    private List<AttrVo> attrVos;

    @Data
    public static class BrandVo{
        private Long brandId;

        private String brandName;

        private String brandImages;
    }

    @Data
    public static class CatalogVo{
        private Integer catalogId;

        private String catalogName;
    }

    @Data
    public static class AttrVo{
        private Integer attrId;
        private String attrName;
        private List<String> attrValue;
    }
}
